<!doctype html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta id="vieport" name="viewport" content="width=640, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5">
		<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="js/jquery.nicescroll.js"></script>
		<script type="text/javascript" src="./js/home-jx.js?version=0310"></script>
		<link rel="stylesheet" type="text/css" href="./css/home.css?version=0310" />
		<script type="text/javascript" src="js/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/jquery.alert.js"></script>
		<link rel="stylesheet" type="text/css" href="./css/jquery.alert.css" />
		<link rel="stylesheet" type="text/css" href="./css/common.css?version=0310" />
		<link rel="stylesheet" type="text/css" href="common.css" />
        <script type="text/javascript" src="js/common.js?version=0310"></script>
		<script type="text/javascript">
		
		var busi_id;
		var busi_name ;
		var areaid ;
		
		function getUrlParam(name){	 
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
			   var r = window.location.search.substr(1).match(reg);   
			    if (r != null) {
				    return unescape(r[2]); 
			    }else{
				    return null;
			    }
	}
		function xiangxi(BST_TYPE_ID,BST_SNAME,MON2,DESC){
			MON2=MON2==null?"":MON2;
			//alert(BST_TYPE_ID);
	        var url ="./businessDetail.html";
			url+="?busi_id="+busi_id+"&RECOM_ARRID="+BST_TYPE_ID+"&busi_name="+escape(busi_name)+"&BST_SNAME="+escape(BST_SNAME);

			 $.cookie("MON2",MON2,{path:"/",expires:15});
			 $.cookie("DESC",DESC,{path:"/",expires:15});
	        window.location.href=url;
	 
	}

		
		$(function (){
			 busi_id=getUrlParam("busi_id");
			 busi_name=decodeURI(getUrlParam("busi_name"));
			$("#tittlename").append(busi_name);
			if(versionFlag=="bj"){
				areaid = 1;
			}else{
				areaid = 17;
				$("#tittlename").text("3G号码");
			}
			$.natureajax({
				type: "get",
				url:jsonserver+"recomm_secondlist.do?",//获取JSON
				data:"callback=?&busi_id="+busi_id+"&areaid="+areaid,
				dataType:"jsonp",
				success:function(json){
					if(json[0].result==1){
						if(json[1].length>0){
							//地域进行遍历
							var _html='';
							for(i=0;i<json[1].length;i++){		
								var obj = json[1][i];
								var desc=obj.BST_SYDESC.length>15?obj.BST_SYDESC.substring(0,15)+"..":obj.BST_SYDESC;
								var mon2=obj.BST_RET_MONEY_2.length>8?obj.BST_RET_MONEY_2.substring(0,8)+"..":obj.BST_RET_MONEY_2;
								var name=obj.BST_SNAME.length>7?obj.BST_SNAME.substring(0,7)+"..":obj.BST_SNAME;
								_html +='<p style="clear:both; margin-bottom:40px;">'+
								'<div class="jiantu" style="float:left"></div>'+
										'<div style="border-radius:0px 10px  10px 0px; border:solid 1px #ccc;width:88%; height:85px; float:left;">'+
										'<table width="100%" onclick="xiangxi(\''+trim(obj.BST_TYPE_ID)+'\',\''+trim(obj.BST_SNAME)+'\',\''+trim(obj.BST_RET_MONEY_2)+'\',\''+trim(obj.BST_SYDESC)+'\')">'+
												'<tr>'+
													'<td width="50%" style="font-size:30px;">&nbsp;&nbsp;&nbsp;'+name+'</td>'+
													'<td width="40%" align="center">&nbsp;&nbsp;<span style="margin-left:2%;font-size:24px; color:#cc0;">'+mon2+'</span></td>'+
													'<td rowspan="2" width="8%" align="center" style=" padding-top:18px;"><img src="image/icon_right_layer.png" /></td>'+
												'</tr>'+
												'<tr>'+
												   '<td colspan="2" style="font-size:24px;color:#666;">&nbsp;&nbsp;&nbsp;&nbsp;'+desc+'</td>'+
												'</tr>'+
										'</table></div>'+
										'</p><br><br><br><br>';
							}
							$("#middle").append(_html);
						}
					}
				},
				error:function(){
					jAlert("出错了!");
				}
				
			});
				
		})
		</script>
		<link type="text/css" href="css/business.css" rel="stylesheet" />
		<title>业务列表</title>
	</head>

	<body onresize="resize()">
		<div id="bodyobj" class="bigimg" style="overflow: hidden;">
			<div id="header" style="text-align:center;" class="header">
		          <table class="headerTal">
		            <tr>
		              <td class="menuTd">返回</td>
		              <td style="font-size:32px; color:#fff; width:60%;">推荐</td>
		              <td width="30%"></td>
		            </tr>
		          </table>
        	</div>
			
				<div id="home1"
					style=" width: 100%; height:1000px; ">
					<!--页面主体开始-->
					<div class="topCenter">
						<div id="tittlename"></div> 
					</div>
					<div class="middle1" id="middle" >

					</div>
					<!--页面主体结束-->
					<div style="height: 30px;"></div>
				</div>
				<div class="bottom"></div>
		</div>
   <br>
	</body>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</html>